Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Sep 2010 23:18:52 -0700
From:      perryh@pluto.rain.com
To:        m.seaman@infracaninophile.co.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: "gmirror load" broken in 8.1 memstick
Message-ID:  <4c8487cc.Rh42YL91jTIv09e0%perryh@pluto.rain.com>
In-Reply-To: <4C835474.7060707@infracaninophile.co.uk>
References:  <4c83190a.SG%2BLIhPWaGtmaaeL%perryh@pluto.rain.com> <4C835474.7060707@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:

> If you've been able to run 'gmirror label' then geom_mirror.ko is
> almost certainly already loaded into your kernel, making 'gmirror
> load' superfluous.  Check using kldstat(8).

Fixit# kldstat
Id Refs Address    Size     Name
 1    1 0xc0400000 bb5504   kernel

It looks as if writing the metadata doesn't require geom_mirror.ko
to be loaded -- which makes a certain amount of sense since the
module, even if loaded, presumably shouldn't do anything to a
partition that doesn't already have metadata in its last sector.

The good news is that, now having an idea what to look for, I checked
for geom_mirror.ko in /boot/kernel and found -- surprise! -- the
/boot/kernel directory doesn't even exist in the Fixit FS (when
booted from the USB stick, dunno about the CD or DVD) and this is
apparently the cause of "gmirror load" reporting "Command 'load' not
available."  The fix is:

Fixit# ln -s /dist/boot/kernel /boot

after which "gmirror load" works, creating /dev/mirror/gm0{,a,b}.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c8487cc.Rh42YL91jTIv09e0%perryh>